package com.herch.system.service.impl;

import com.herch.common.constant.MnlConstans;
import com.herch.common.utils.StringUtils;
import com.herch.system.domain.HqMonitorData;
import com.herch.system.mapper.*;
import com.herch.system.service.IHqMonitorDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 荧光模拟量温度监控数据Service业务层处理
 * 
 * @author Fei.li02
 * @date 2023-12-25
 */
@Service
public class HqMonitorDataServiceImpl implements IHqMonitorDataService 
{
    @Autowired
    private HqMonitorDataMapper monitorDataMapper;

    /**
     * 查询荧光模拟量温度监控数据
     * 
     * @param ID 荧光模拟量温度监控数据主键
     * @return 荧光模拟量温度监控数据
     */
    @Override
    public HqMonitorData selectHqMonitorDataByID(Long ID)
    {
        return monitorDataMapper.selectHqMonitorDataByID(ID);
    }

    /**
     * 查询荧光模拟量温度监控数据列表
     * 
     * @param hqMonitorData 荧光模拟量温度监控数据
     * @return 荧光模拟量温度监控数据
     */
    @Override
    public List<HqMonitorData> selectHqMonitorDataList(HqMonitorData hqMonitorData) {
        List<HqMonitorData> monitorDataList = new ArrayList<>();
        if(StringUtils.isEmpty(hqMonitorData.getEquipmentId())){
            hqMonitorData.setEquipmentId("1");
        }
        switch(hqMonitorData.getEquipmentId()){
            case MnlConstans.T1:
                hqMonitorData.setTableName(MnlConstans.Tab_1);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T2:
                hqMonitorData.setTableName(MnlConstans.Tab_2);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T3:
                hqMonitorData.setTableName(MnlConstans.Tab_3);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T4:
                hqMonitorData.setTableName(MnlConstans.Tab_4);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T5:
                hqMonitorData.setTableName(MnlConstans.Tab_5);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T6:
                hqMonitorData.setTableName(MnlConstans.Tab_6);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T7:
                hqMonitorData.setTableName(MnlConstans.Tab_7);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T8:
                hqMonitorData.setTableName(MnlConstans.Tab_8);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T9:
                hqMonitorData.setTableName(MnlConstans.Tab_9);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T10:
                hqMonitorData.setTableName(MnlConstans.Tab_10);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T11:
                hqMonitorData.setTableName(MnlConstans.Tab_11);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T12:
                hqMonitorData.setTableName(MnlConstans.Tab_12);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T13:
                hqMonitorData.setTableName(MnlConstans.Tab_13);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T14:
                hqMonitorData.setTableName(MnlConstans.Tab_14);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T15:
                hqMonitorData.setTableName(MnlConstans.Tab_15);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T16:
                hqMonitorData.setTableName(MnlConstans.Tab_16);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T17:
                hqMonitorData.setTableName(MnlConstans.Tab_17);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T18:
                hqMonitorData.setTableName(MnlConstans.Tab_18);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T19:
                hqMonitorData.setTableName(MnlConstans.Tab_19);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T20:
                hqMonitorData.setTableName(MnlConstans.Tab_20);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T21:
                hqMonitorData.setTableName(MnlConstans.Tab_21);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T22:
                hqMonitorData.setTableName(MnlConstans.Tab_22);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T23:
                hqMonitorData.setTableName(MnlConstans.Tab_23);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T24:
                hqMonitorData.setTableName(MnlConstans.Tab_24);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T25:
                hqMonitorData.setTableName(MnlConstans.Tab_25);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T26:
                hqMonitorData.setTableName(MnlConstans.Tab_26);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T27:
                hqMonitorData.setTableName(MnlConstans.Tab_27);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T28:
                hqMonitorData.setTableName(MnlConstans.Tab_28);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T29:
                hqMonitorData.setTableName(MnlConstans.Tab_29);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T30:
                hqMonitorData.setTableName(MnlConstans.Tab_30);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T31:
                hqMonitorData.setTableName(MnlConstans.Tab_31);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T32:
                hqMonitorData.setTableName(MnlConstans.Tab_32);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T33:
                hqMonitorData.setTableName(MnlConstans.Tab_33);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T34:
                hqMonitorData.setTableName(MnlConstans.Tab_34);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T35:
                hqMonitorData.setTableName(MnlConstans.Tab_35);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T36:
                hqMonitorData.setTableName(MnlConstans.Tab_36);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T37:
                hqMonitorData.setTableName(MnlConstans.Tab_37);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T38:
                hqMonitorData.setTableName(MnlConstans.Tab_38);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T39:
                hqMonitorData.setTableName(MnlConstans.Tab_39);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T40:
                hqMonitorData.setTableName(MnlConstans.Tab_40);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T41:
                hqMonitorData.setTableName(MnlConstans.Tab_41);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T42:
                hqMonitorData.setTableName(MnlConstans.Tab_42);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T43:
                hqMonitorData.setTableName(MnlConstans.Tab_43);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T44:
                hqMonitorData.setTableName(MnlConstans.Tab_44);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T45:
                hqMonitorData.setTableName(MnlConstans.Tab_45);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T46:
                hqMonitorData.setTableName(MnlConstans.Tab_46);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T47:
                hqMonitorData.setTableName(MnlConstans.Tab_47);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T48:
                hqMonitorData.setTableName(MnlConstans.Tab_48);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T49:
                hqMonitorData.setTableName(MnlConstans.Tab_49);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T50:
                hqMonitorData.setTableName(MnlConstans.Tab_50);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T51:
                hqMonitorData.setTableName(MnlConstans.Tab_51);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T52:
                hqMonitorData.setTableName(MnlConstans.Tab_52);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T53:
                hqMonitorData.setTableName(MnlConstans.Tab_53);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T54:
                hqMonitorData.setTableName(MnlConstans.Tab_54);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T55:
                hqMonitorData.setTableName(MnlConstans.Tab_55);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T56:
                hqMonitorData.setTableName(MnlConstans.Tab_56);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T57:
                hqMonitorData.setTableName(MnlConstans.Tab_57);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T58:
                hqMonitorData.setTableName(MnlConstans.Tab_58);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T59:
                hqMonitorData.setTableName(MnlConstans.Tab_59);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
            case MnlConstans.T60:
                hqMonitorData.setTableName(MnlConstans.Tab_60);
                monitorDataList = monitorDataMapper.selectHqMonitorDataList(hqMonitorData);
                break;
        }
        return monitorDataList;
    }

    /**
     * 查询荧光模拟量温度监控数据列表
     *
     * @param hqMonitorData 荧光模拟量温度监控数据
     * @return 荧光模拟量温度监控数据
     */
    @Override
    public Map<String,Object> formatEchartsData(HqMonitorData hqMonitorData) {
        Map<String,Object> map = new HashMap<>();
        Map<String,Object> channel1Map = new HashMap<>();
        Map<String,Object> channel2Map = new HashMap<>();
        Map<String,Object> channel3Map = new HashMap<>();
        Map<String,Object> channel4Map = new HashMap<>();
        Map<String,Object> channel5Map = new HashMap<>();
        List<String> collectTimeList = new ArrayList<>();
        List<String> ch1_eqTemList = new ArrayList<>();
        List<String> ch1_avListList = new ArrayList<>();
        List<String> ch1_mnlTemList = new ArrayList<>();
        List<String> ch1_temErrorList = new ArrayList<>();

        List<String> ch2_eqTemList = new ArrayList<>();
        List<String> ch2_avListList = new ArrayList<>();
        List<String> ch2_mnlTemList = new ArrayList<>();
        List<String> ch2_temErrorList = new ArrayList<>();

        List<String> ch3_eqTemList = new ArrayList<>();
        List<String> ch3_avListList = new ArrayList<>();
        List<String> ch3_mnlTemList = new ArrayList<>();
        List<String> ch3_temErrorList = new ArrayList<>();

        List<String> ch4_eqTemList = new ArrayList<>();
        List<String> ch4_avListList = new ArrayList<>();
        List<String> ch4_mnlTemList = new ArrayList<>();
        List<String> ch4_temErrorList = new ArrayList<>();

        List<String> ch5_eqTemList = new ArrayList<>();
        List<String> ch5_avListList = new ArrayList<>();
        List<String> ch5_mnlTemList = new ArrayList<>();
        List<String> ch5_temErrorList = new ArrayList<>();
        long startTime = System.currentTimeMillis();
        List<HqMonitorData> monitorDataList = getHqMonitorDataList(hqMonitorData);
        long endTime = System.currentTimeMillis();
        long executionTimeMillis = endTime - startTime;
        System.out.println("executionTimeMillis------>:"+executionTimeMillis);
        if(monitorDataList.size()>0){
            for(HqMonitorData monitorData:monitorDataList){
                if("CH1".equals(monitorData.getChannelNum())){
                    collectTimeList.add(monitorData.getCollectTime());
                    ch1_eqTemList.add(monitorData.getTemperature());
                    ch1_avListList.add(monitorData.getAnalog());
                    ch1_mnlTemList.add(monitorData.getSimulationTemperature());
                    ch1_temErrorList.add(monitorData.getTemperatureError());
                }
                if("CH2".equals(monitorData.getChannelNum())){
                    ch2_eqTemList.add(monitorData.getTemperature());
                    ch2_avListList.add(monitorData.getAnalog());
                    ch2_mnlTemList.add(monitorData.getSimulationTemperature());
                    ch2_temErrorList.add(monitorData.getTemperatureError());
                }
                if("CH3".equals(monitorData.getChannelNum())){
                    ch3_eqTemList.add(monitorData.getTemperature());
                    ch3_avListList.add(monitorData.getAnalog());
                    ch3_mnlTemList.add(monitorData.getSimulationTemperature());
                    ch3_temErrorList.add(monitorData.getTemperatureError());
                }
                if("CH4".equals(monitorData.getChannelNum())){
                    ch4_eqTemList.add(monitorData.getTemperature());
                    ch4_avListList.add(monitorData.getAnalog());
                    ch4_mnlTemList.add(monitorData.getSimulationTemperature());
                    ch4_temErrorList.add(monitorData.getTemperatureError());
                }

                if("CH5".equals(monitorData.getChannelNum())){
                    ch4_eqTemList.add(monitorData.getTemperature());
                    ch4_avListList.add(monitorData.getAnalog());
                    ch4_mnlTemList.add(monitorData.getSimulationTemperature());
                    ch4_temErrorList.add(monitorData.getTemperatureError());
                }

            }

            channel1Map.put("ch1_eqTemList",ch1_eqTemList);
            channel1Map.put("ch1_avListList",ch1_avListList);
            channel1Map.put("ch1_mnlTemList",ch1_mnlTemList);
            channel1Map.put("ch1_temErrorList",ch1_temErrorList);

            channel2Map.put("ch2_eqTemList",ch2_eqTemList);
            channel2Map.put("ch2_avListList",ch2_avListList);
            channel2Map.put("ch2_mnlTemList",ch2_mnlTemList);
            channel2Map.put("ch2_temErrorList",ch2_temErrorList);

            channel3Map.put("ch3_eqTemList",ch3_eqTemList);
            channel3Map.put("ch3_avListList",ch3_avListList);
            channel3Map.put("ch3_mnlTemList",ch3_mnlTemList);
            channel3Map.put("ch3_temErrorList",ch3_temErrorList);

            channel4Map.put("ch4_eqTemList",ch4_eqTemList);
            channel4Map.put("ch4_avListList",ch4_avListList);
            channel4Map.put("ch4_mnlTemList",ch4_mnlTemList);
            channel4Map.put("ch4_temErrorList",ch4_temErrorList);

            channel5Map.put("ch5_eqTemList",ch5_eqTemList);
            channel5Map.put("ch5_avListList",ch5_avListList);
            channel5Map.put("ch5_mnlTemList",ch5_mnlTemList);
            channel5Map.put("ch5_temErrorList",ch5_temErrorList);
            if(ch1_eqTemList.size()>0 || ch1_avListList.size()>0 || ch1_mnlTemList.size()>0 || ch1_temErrorList.size()>0){
                map.put("CH1",channel1Map);
            }
            if(ch2_eqTemList.size()>0 || ch2_avListList.size()>0 || ch2_mnlTemList.size()>0 || ch2_temErrorList.size()>0){
                map.put("CH2",channel2Map);
            }
            if(ch3_eqTemList.size()>0 || ch3_avListList.size()>0 || ch3_mnlTemList.size()>0 || ch3_temErrorList.size()>0){
                map.put("CH3",channel3Map);
            }
            if(ch4_eqTemList.size()>0 || ch4_avListList.size()>0 || ch4_mnlTemList.size()>0 || ch4_temErrorList.size()>0){
                map.put("CH4",channel4Map);
            }
            if(ch5_eqTemList.size()>0 || ch5_avListList.size()>0 || ch5_mnlTemList.size()>0 || ch5_temErrorList.size()>0){
                map.put("CH5",channel5Map);
            }
            map.put("xAxisList",collectTimeList);
        }
        return map;
    }

    private List<HqMonitorData> getHqMonitorDataList(HqMonitorData hqMonitorData) {
        List<HqMonitorData> monitorDataList = new ArrayList<>();
        switch(hqMonitorData.getEquipmentId()){
            case MnlConstans.T1:
                hqMonitorData.setTableName(MnlConstans.Tab_1);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T2:
                hqMonitorData.setTableName(MnlConstans.Tab_2);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T3:
                hqMonitorData.setTableName(MnlConstans.Tab_3);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T4:
                hqMonitorData.setTableName(MnlConstans.Tab_4);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T5:
                hqMonitorData.setTableName(MnlConstans.Tab_5);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T6:
                hqMonitorData.setTableName(MnlConstans.Tab_6);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T7:
                hqMonitorData.setTableName(MnlConstans.Tab_7);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T8:
                hqMonitorData.setTableName(MnlConstans.Tab_8);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T9:
                hqMonitorData.setTableName(MnlConstans.Tab_9);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T10:
                hqMonitorData.setTableName(MnlConstans.Tab_10);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T11:
                hqMonitorData.setTableName(MnlConstans.Tab_11);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T12:
                hqMonitorData.setTableName(MnlConstans.Tab_12);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T13:
                hqMonitorData.setTableName(MnlConstans.Tab_13);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T14:
                hqMonitorData.setTableName(MnlConstans.Tab_14);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T15:
                hqMonitorData.setTableName(MnlConstans.Tab_15);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T16:
                hqMonitorData.setTableName(MnlConstans.Tab_16);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T17:
                hqMonitorData.setTableName(MnlConstans.Tab_17);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T18:
                hqMonitorData.setTableName(MnlConstans.Tab_18);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T19:
                hqMonitorData.setTableName(MnlConstans.Tab_19);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T20:
                hqMonitorData.setTableName(MnlConstans.Tab_20);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T21:
                hqMonitorData.setTableName(MnlConstans.Tab_21);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T22:
                hqMonitorData.setTableName(MnlConstans.Tab_22);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T23:
                hqMonitorData.setTableName(MnlConstans.Tab_23);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T24:
                hqMonitorData.setTableName(MnlConstans.Tab_24);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T25:
                hqMonitorData.setTableName(MnlConstans.Tab_25);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T26:
                hqMonitorData.setTableName(MnlConstans.Tab_26);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T27:
                hqMonitorData.setTableName(MnlConstans.Tab_27);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T28:
                hqMonitorData.setTableName(MnlConstans.Tab_28);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T29:
                hqMonitorData.setTableName(MnlConstans.Tab_29);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T30:
                hqMonitorData.setTableName(MnlConstans.Tab_30);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T31:
                hqMonitorData.setTableName(MnlConstans.Tab_31);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T32:
                hqMonitorData.setTableName(MnlConstans.Tab_32);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T33:
                hqMonitorData.setTableName(MnlConstans.Tab_33);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T34:
                hqMonitorData.setTableName(MnlConstans.Tab_34);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T35:
                hqMonitorData.setTableName(MnlConstans.Tab_35);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T36:
                hqMonitorData.setTableName(MnlConstans.Tab_36);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T37:
                hqMonitorData.setTableName(MnlConstans.Tab_37);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T38:
                hqMonitorData.setTableName(MnlConstans.Tab_38);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T39:
                hqMonitorData.setTableName(MnlConstans.Tab_39);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T40:
                hqMonitorData.setTableName(MnlConstans.Tab_40);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T41:
                hqMonitorData.setTableName(MnlConstans.Tab_41);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T42:
                hqMonitorData.setTableName(MnlConstans.Tab_42);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T43:
                hqMonitorData.setTableName(MnlConstans.Tab_43);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T44:
                hqMonitorData.setTableName(MnlConstans.Tab_44);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T45:
                hqMonitorData.setTableName(MnlConstans.Tab_45);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T46:
                hqMonitorData.setTableName(MnlConstans.Tab_46);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T47:
                hqMonitorData.setTableName(MnlConstans.Tab_47);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T48:
                hqMonitorData.setTableName(MnlConstans.Tab_48);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T49:
                hqMonitorData.setTableName(MnlConstans.Tab_49);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T50:
                hqMonitorData.setTableName(MnlConstans.Tab_50);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T51:
                hqMonitorData.setTableName(MnlConstans.Tab_51);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T52:
                hqMonitorData.setTableName(MnlConstans.Tab_52);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T53:
                hqMonitorData.setTableName(MnlConstans.Tab_53);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T54:
                hqMonitorData.setTableName(MnlConstans.Tab_54);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T55:
                hqMonitorData.setTableName(MnlConstans.Tab_55);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T56:
                hqMonitorData.setTableName(MnlConstans.Tab_56);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T57:
                hqMonitorData.setTableName(MnlConstans.Tab_57);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T58:
                hqMonitorData.setTableName(MnlConstans.Tab_58);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T59:
                hqMonitorData.setTableName(MnlConstans.Tab_59);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
            case MnlConstans.T60:
                hqMonitorData.setTableName(MnlConstans.Tab_60);
                monitorDataList = monitorDataMapper.formatEchartsData(hqMonitorData);
                break;
        }
        return monitorDataList;
    }


    /**
     * 修改荧光模拟量温度监控数据
     * 
     * @param hqMonitorData 荧光模拟量温度监控数据
     * @return 结果
     */
    @Override
    public int updateHqMonitorData(HqMonitorData hqMonitorData)
    {
        return monitorDataMapper.updateHqMonitorData(hqMonitorData);
    }

    /**
     * 批量删除荧光模拟量温度监控数据
     * 
     * @param ids 需要删除的荧光模拟量温度监控数据主键
     * @return 结果
     */
    @Override
    public int deleteHqMonitorDataByIDs(Long[] ids)
    {
        return monitorDataMapper.deleteHqMonitorDataByIDs(ids);
    }

    /**
     * 删除荧光模拟量温度监控数据信息
     *
     * @param id 荧光模拟量温度监控数据主键
     * @return 结果
     */
    @Override
    public int deleteHqMonitorDataByID(Long id)
    {
        return monitorDataMapper.deleteHqMonitorDataByID(id);
    }

    /**
     * 清空历史监控数据
     */
    @Override
    public void cleanHistoryData() {
        monitorDataMapper.cleanHistoryData();
    }

}
